<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/pages/templates/TemplateClient.xhtml">

	<ui:define name="titre">Comme au resto</ui:define>
	<ui:define name="content">

		<h:body>
	<h:messages/><h:form> 
 	<br/>
	date de commande : <h:outputText value="#{commandeMB.commande.dateCommandeCalendar.time}">
	<f:convertDateTime pattern="dd/MM/yyyy"/>
	</h:outputText><br/>
	date de livraison : <h:inputText value="#{commandeMB.commande.dateDemandeLivraison.time}">
	<f:convertDateTime pattern="dd/MM/yyyy"/>
	</h:inputText><br/> <br/> <br/>
	total commandé <h:outputText value="#{commandeMB.commande.totalCommande * listeRestaurantMB.infoSession.devise.taux} ">
		<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/> 
	</h:outputText>  #{listeRestaurantMB.infoSession.devise.libelle}<br/>

	<br/><br/>
	<h:commandButton value="Confirmer la commande"  action="#{commandeMB.doCommande}"/>
	 <br/> <br/>
	</h:form> 
	</h:body>
</ui:define>
</ui:composition>
